<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=utf-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            display: inline-block;
        }
        .d2{
            display: inline-block;
        }
    </style>
</head>
<body>
    <form method="post" action="${pageContext.request.contextPath}/bulid_update">
        <div class="d1">
           <p>
               <span>合同编号</span>
               <input type="text" name="contractNO" required="required" value="${contractNO}" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span>开发商名称</span>
               <input type="text" name="developerName"  required="required" value="${developerName}"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 建设方名称</span>
               <input type="text" name="constructorName"  required="required" value="${constructorName}"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 工程项目名称</span>
               <input type="text" name="projName"  required="required" value="${projName}"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span>项目地址 </span>
               <input type="text" name="projAddress"  required="required" value="${projAddress}"/>
               <span style="color: red">*</span>
           </p>
            <p>
                <span>监理方名称</span>
                <input type="text" name="supervisorName" value="${supervisorName}"/>
            </p>
            <p>
                <span>建筑面积（平方米）</span>
                <input type="text" name="area" value="${area}"/>
            </p>
            <p>
                <span>结构、层数</span>
                <input type="text" name="layers" value="${layers}"/>
            </p>
            <p>
                <span>承包方式</span>
                <select name="contractingMethods" >
                    <option value="19" <c:if test="${contractingMethods==19}">selected</c:if>>包工包料</option>
                    <option value="20" <c:if test="${contractingMethods==20}">selected</c:if>>轻工</option>
                </select>
            </p>
            <p>
                <span>结算价格</span>
                <input type="text" name="price" value="${price}"/>
            </p>
        </div>
        <div class="d2">
            <p>
                <span>开竣工时间</span>
                <input type="text" name="startNfinishtime" value="${startNfinishtime}"/>
            </p>
            <p>
                <span>付款方式</span>
                <select name="paymentTerm">
                    <option value="1" <c:if test="${paymentTerm==1}">selected</c:if>>一次性付清</option>
                    <option value="2" <c:if test="${paymentTerm==2}">selected</c:if>>分次付清</option>
                </select>
            </p>
            <p>
                <span>分期次数</span>
                <input type="text" name="paymentTimes" value="${paymentTimes}"/>
            </p>
            <p>
                <span>质保期（年）</span>
                <input type="text" name="guaranteePeriod" value="${guaranteePeriod}"/>
            </p>
            <p>
                <span>质保金（百分比）</span>
                <input type="text" name="guaranteeMoney" value="${guaranteeMoney}"/>
            </p>
            <p>
                <span>合同状态</span>
                <input type="text" name="contractStatus" value="${contractStatus}"/>
            </p>
            <p>
                <span>备注</span>
                <input type="text" name="remark" value="${remark}" />
            </p>
        </div>
        <div>
            <button type="submit">修改</button>
        </div>
    </form>
</body>
</html>
